import request from '@/utils/request'

// 查询考勤组列表
export function listAttendGroup(query) {
  return request({
    url: '/system/attend_group/list',
    method: 'get',
    params: query
  })
}

// 查询考勤组详细
export function getAttendGroup(postId) {
  return request({
    url: '/system/attend_group/' + postId,
    method: 'get'
  })
}

// 新增考勤组
export function addAttendGroup(data) {
  return request({
    url: '/system/attend_group',
    method: 'post',
    data: data
  })
}

// 修改考勤组
export function updateAttendGroup(data) {
  return request({
    url: '/system/attend_group',
    method: 'put',
    data: data
  })
}

// 删除考勤组
export function delAttendGroup(postId) {
  return request({
    url: '/system/attend_group/' + postId,
    method: 'delete'
  })
}
